package ch09;

import java.util.StringTokenizer;

class _43_StringTokenizerEx3 {
	public static void main(String args[]) {
		String source = "1,김천재,100,100,100|2,박수재,80,90,70|3,고아라,100,100,100";
		StringTokenizer st = new StringTokenizer(source, "|");
		
		String token = "";
		StringTokenizer st2 = null;
		while (st.hasMoreTokens()) {
			 token = st.nextToken();
			st2 = new StringTokenizer(token, ",");
			while (st2.hasMoreTokens())	System.out.println(st2.nextToken());
			System.out.println("------");
		}
	}
}
/*
1
김천재
100
100
100
------
2
박수재
80
90
70
------
3
고아라
100
100
100
------
*/